100
How can I remove an event
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 36
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oCalendar.Events.Add(oCalendar.Date).Image = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Image = 1"

oCalendar.Events.Remove(oCalendar.Date)

99
How can I count the events
Dim oCalendar as P
Dim var_Count as 
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oCalendar.Events.Add(oCalendar.Date).Image = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Image = 1"

var_Count = oCalendar.Events.Count

98
How can I clear all events
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oCalendar.Events.Add(oCalendar.Date).Image = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Image = 1"

oCalendar.Events.Clear()

97
How can I save the events in the calendar
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

96
How can I assign an icon to a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 36
oCalendar.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
' oCalendar.Events.Add(oCalendar.Date).Image = 1
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Image = 1"


95
How can I enable or disable a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Disabled = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Disabled = True"


94
How can I mark or highlight a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Marker = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Marker = True"


93
How can I assign a tooltip or a comment to a date

Dim oCalendar as P
Dim var_Event as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
var_Event = oCalendar.Events.Add(oCalendar.Date)
	var_Event.Comment = "This is a text that shows up when the cursor hovers the date"
	var_Event.CommentTitle = "T I T L E"
oCalendar.HideSelection = .t.

92
How can I assign any extra data to a date
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).UserData = "your data"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.UserData = `your data`"


91
How can I change the background color for a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).BackColor = 255
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.BackColor = 255"


90
How can I change the foreground color for a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).ForeColor = 255
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.ForeColor = 255"


89
How can I draw a date as strikeout

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).StrikeOut = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.StrikeOut = True"


88
How can I underline a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Underline = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Underline = True"


87
How can I make italic a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Italic = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Italic = True"


86
How can I bold a date

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
' oCalendar.Events.Add(oCalendar.Date).Bold = .t.
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Bold = True"


85
How can I get the last visible date being displayed in the calendar
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowNonMonthDays = .f.
' oCalendar.Events.Add(oCalendar.LastVisibleDate).Comment = "This is the last visible date"
var_Event = oCalendar.Events.Add(oCalendar.LastVisibleDate)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is the last visible date`"


84
How can I get the first visible date being displayed in the calendar
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowNonMonthDays = .f.
' oCalendar.Events.Add(oCalendar.FirstVisibleDate).Comment = "This is the first visible date"
var_Event = oCalendar.Events.Add(oCalendar.FirstVisibleDate)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is the first visible date`"


83
How can I hide the ticker that's shown for dates that have a tooltip or a comment
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.CommentBackColor = oCalendar.BackColor
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"


82
How can I change the visual aspect of the dates that have a comment or a tooltip assigned

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.CommentBackColor = 16777216
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

81
How can I change the visual aspect of the dates that have a comment or a tooltip assigned
Dim oCalendar as P
Dim var_Appearance as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
var_Appearance = oCalendar.VisualAppearance
	var_Appearance.Add(11,"c:\exontrol\images\normal.ebn")
	var_Appearance.Add(1,"CP:11 4 2 -2 -2")
oCalendar.CommentBackColor = 16777216
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

80
How can I change the color to highlight the dates that have a comment or a tooltip assigned

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.CommentBackColor = 0
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

79
How can I hide the days that are shown in gray, and doesn' belong to the month

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowNonMonthDays = .f.

78
How can I change the color for non working days

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.NonworkingDays = 6
oCalendar.NonworkingDaysPattern = 10
oCalendar.NonworkingDaysColor = 255

77
How can I change the pattern or the style to draw the non working days

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.NonworkingDays = 6
oCalendar.NonworkingDaysPattern = 10

76
How can I show or hide the non working days
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.NonworkingDays = 0

75
How can I specify the non working days
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.NonworkingDays = 6

74
How do I get the height of the control to fit the MaxMonthY months in the client area
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

73
How do I get the width of the control to fit the MaxMonthX months in the client area
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

72
How can I specify the min and max years to scroll within
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MinScrollYear = 2001
oCalendar.MaxScrollYear = 2010

71
How do I let the tooltip being displayed longer

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipPopDelay = 10000
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

70
How can I save the selected dates
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

69
How can I change the date that gets the focus
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = {01/01/2001}
oCalendar.FocusDate = {01/02/2001}

68
How can I select a new date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = {01/01/2001}
oCalendar.Value = {01/02/2001}

67
I've seen that the width of the tooltip is variable. Can I make it larger

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipWidth = 328
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

66
How do I disable showing the tooltip for all control
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 0
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

65
How do I show the tooltip quicker
Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

64
How do I call your x-script language
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ExecuteTemplate("BackColor = RGB(255,0,0)")

63
How do I call your x-script language
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "BackColor = RGB(255,0,0)"

62
Can I change the font for the tooltip

Dim oCalendar as P
Dim var_Event as local
Dim var_StdFont as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
var_StdFont = oCalendar.ToolTipFont
	var_StdFont.Name = "Tahoma"
	var_StdFont.Size = 14
oCalendar.ToolTipWidth = 364
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

61
How can I change the caption of the Today's button

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.TodayCaption = "Azi"

60
How do I get the date from the cursor
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

59
How do I unselect a date

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SingleSel = .f.
oCalendar.Date = {01/01/2001}
oCalendar.SelDate = {01/02/2001}
oCalendar.SelDate = {01/03/2001}
oCalendar.SelDate = {01/04/2001}
oCalendar.UnSelDate({01/03/2001})

58
How do I get the list of selected dates
' Fired when the selection is changed.
function SelectionChanged as v ()
	oCalendar = topparent:CONTROL_ACTIVEX1.activex
	? oCalendar.SelDate 
end function

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex

57
How do I select multiple dates

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SingleSel = .f.
oCalendar.Date = {01/01/2001}
oCalendar.SelDate = {01/02/2001}
oCalendar.SelDate = {01/03/2001}
oCalendar.SelDate = {01/04/2001}

56
How do I get the selected date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SelDate = oCalendar.Date

55
How can I build a date expression
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = oCalendar.DoDate(2001,1,1)

54
How can I select a new date

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = oCalendar.DoDate(2001,1,1)
oCalendar.SelDate = oCalendar.DoDate(2001,1,2)

53
How can I select a new date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = {01/01/2001}
oCalendar.SelDate = {01/02/2001}

52
How can I change the browsed date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Date = {01/01/2001}

51
How can I show or hide the buttons that in the header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowYearSelector = .f.
oCalendar.ShowMonthSelector = .f.

50
How can I show or hide the buttons that scrolls the years

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowYearSelector = .f.

49
How can I disable changing the month in the months selector

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowMonthSelector = .f.

48
How can I change the visual aspect of the selected date, using your EBN

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BackColor = 16777215
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.SelBackColor = 16777216
oCalendar.SelForeColor = oCalendar.BackColor

47
How can I change the colors for selected dates

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SelBackColor = 0
oCalendar.SelForeColor = 16777215

46
How can I change the color of the line arround a month

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.DrawBorderLine = 2
oCalendar.BorderLineColor = 255

45
How can I change the style of the line arround a month

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.DrawBorderLine = 2

44
How can I specify the number of months being displayed
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowTodayButton = .f.
oCalendar.ShowYearScroll = .f.
oCalendar.MinMonthX = 2
oCalendar.MaxMonthX = 2
oCalendar.MinMonthY = 2
oCalendar.MaxMonthY = 2

43
How can I lock the control, so user can't select a new date
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Locked = .t.

42
How do I change the first day of the week

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.FirstDay = 2

41
How do I change the name of the months

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MonthNames = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"

40
How do I change the name of the months

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Template = "MonthName(1) = `Jan`" // oCalendar.MonthName(1) = "Jan"
oCalendar.Template = "MonthName(2) = `Feb`" // oCalendar.MonthName(2) = "Feb"
oCalendar.Template = "MonthName(3) = `Mar`" // oCalendar.MonthName(3) = "Mar"
oCalendar.Template = "MonthName(4) = `Apr`" // oCalendar.MonthName(4) = "Apr"
oCalendar.Template = "MonthName(5) = `May`" // oCalendar.MonthName(5) = "May"
oCalendar.Template = "MonthName(6) = `Jun`" // oCalendar.MonthName(6) = "Jun"
oCalendar.Template = "MonthName(7) = `Jul`" // oCalendar.MonthName(7) = "Jul"
oCalendar.Template = "MonthName(8) = `Aug`" // oCalendar.MonthName(8) = "Aug"
oCalendar.Template = "MonthName(9) = `Sep`" // oCalendar.MonthName(9) = "Sep"
oCalendar.Template = "MonthName(10) = `Oct`" // oCalendar.MonthName(10) = "Oct"
oCalendar.Template = "MonthName(11) = `Nov`" // oCalendar.MonthName(11) = "Nov"
oCalendar.Template = "MonthName(12) = `Dec`" // oCalendar.MonthName(12) = "Dec"

39
How do I change the name for each week day

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 24
oCalendar.FixedCellHeight = 16
oCalendar.WeekDays = "Su Mo Tu We Th Fr Sa"
oCalendar.HeaderForeColor = 255
oCalendar.HeaderBackColor = 16777215

38
How can I specify the width and height for dates being displayed in the calendar
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 22
oCalendar.FixedCellHeight = 16

37
How can I specify the width and height for dates being displayed in the calendar
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AutoSize = .f.
oCalendar.FixedCellWidth = 32
oCalendar.FixedCellHeight = 24

36
How do I change the appearance for dates in the calendar

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.AppearanceDay = 1
oCalendar.BackColor = 2147483663

35
How do I specify the color for the grid lines

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.DrawGridLine = 1
oCalendar.GridLineColor = 255

34
How do I draw the grid lines

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.DrawGridLine = 1

33
How do I change the foreground color for the week days and week numbers header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.HeaderForeColor = 255
oCalendar.ShowWeeks = .t.

32
How do I change the background color for the week days and week numbers header

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.HeaderBackColor = 255
oCalendar.ShowWeeks = .t.

31
How can I show or hide the 'Today' button

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowTodayButton = .f.

30
How can I show or hide the scroll bar that changes the year

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowYearScroll = .f.

29
How can I show or hide the header that displays the months

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowMonth = .f.

28
How can I show or hide the header that displays the week days

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowDays = .f.

27
How do I show or hide the weeks

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ShowWeeks = .t.

26
How can I change the visual appearance of Today date in the calendar

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MarkToday = .t.
oCalendar.Template = "Background(14) = 255" // oCalendar.Background(14) = 255

25
How do I mark the Today date

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.MarkToday = .t.

24
How can I show the control's selection even if the control loses the focus

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.HideSelection = .f.

23
How can I hide the control's selection when the control loses the focus

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.HideSelection = .t.

22
How do I enable single selection
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SingleSel = .t.

21
How do I enable multiple selection

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.SingleSel = .f.

20
How do I disable or enable the control
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Enabled = .f.

19
Can I change the forecolor for the tooltip

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
oCalendar.ToolTipWidth = 364
oCalendar.Template = "Background(66) = 255" // oCalendar.Background(66) = 255
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

18
Can I change the background color for the tooltip

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
oCalendar.ToolTipWidth = 364
oCalendar.Template = "Background(65) = 255" // oCalendar.Background(65) = 255
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

17
Can I change the default border of the tooltip, using your EBN files

Dim oCalendar as P
Dim var_Event as local

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ToolTipDelay = 1
oCalendar.ToolTipWidth = 364
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(64) = 16777216" // oCalendar.Background(64) = 16777216
' oCalendar.Events.Add(oCalendar.Date).Comment = "This is a text that shows up when the cursor hovers the date"
var_Event = oCalendar.Events.Add(oCalendar.Date)
oCalendar.TemplateDef = "dim var_Event"
oCalendar.TemplateDef = var_Event
oCalendar.Template = "var_Event.Comment = `This is a text that shows up when the cursor hovers the date`"

oCalendar.HideSelection = .t.

16
How can I change the visual appearance of the selected month, in the months selector, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(15) = 16777216" // oCalendar.Background(15) = 16777216
oCalendar.Template = "Background(16) = 255" // oCalendar.Background(16) = 255

15
How can I change the visual appearance of Today date in the calendar, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\pushed.ebn")
oCalendar.Template = "Background(14) = 16777216" // oCalendar.Background(14) = 16777216
oCalendar.Template = "Background(20) = 1" // oCalendar.Background(20) = 1
oCalendar.SelForeColor = 0
oCalendar.MarkToday = .t.

14
How can I change the visual appearance of separator between calendar and 'Today' button , using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(13) = 16777216" // oCalendar.Background(13) = 16777216

13
How can I change the visual appearance of the scrolling bar for years, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oCalendar.Template = "Background(12) = 16777216" // oCalendar.Background(12) = 16777216
oCalendar.Template = "Background(11) = 33554432" // oCalendar.Background(11) = 33554432

12
How can I change the visual appearance of 'Today' button, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oCalendar.Template = "Background(9) = 16777216" // oCalendar.Background(9) = 16777216
oCalendar.Template = "Background(10) = 33554432" // oCalendar.Background(10) = 33554432

11
How can I change the visual appearance of header , using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(8) = 16777216" // oCalendar.Background(8) = 16777216
oCalendar.HeaderForeColor = 255

10
How can I change the visual appearance of header that week numbers, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(7) = 16777216" // oCalendar.Background(7) = 16777216
oCalendar.HeaderForeColor = 255
oCalendar.ShowWeeks = .t.

9
How can I change the visual appearance of header that displays days, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(6) = 16777216" // oCalendar.Background(6) = 16777216

8
How can I change the visual appearance of the drop down button, using EBN files
Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
oCalendar.Template = "Background(4) = 16777216" // oCalendar.Background(4) = 16777216
oCalendar.Template = "Background(5) = 33554432" // oCalendar.Background(5) = 33554432

7
How do I change the visual appearance of the left and right buttons in the calendar's header, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(2) = 16777216" // oCalendar.Background(2) = 16777216
oCalendar.Template = "Background(3) = 16777216" // oCalendar.Background(3) = 16777216

6
How do I change the visual appearance of the up and down buttons in the calendar's header, using EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Template = "Background(0) = 16777216" // oCalendar.Background(0) = 16777216
oCalendar.Template = "Background(1) = 16777216" // oCalendar.Background(1) = 16777216

5
How do I change the control's foreground color

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.ForeColor = 255

4
How do I change the control's background color

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.BackColor = 13158600

3
How can I change the control's font

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Font.Name = "Verdana"

2
How do I change the control's border, using your EBN files

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
oCalendar.Appearance = 16777216 '1000000 + 

1
How do I remove the control's border

Dim oCalendar as P

oCalendar = topparent:CONTROL_ACTIVEX1.activex
oCalendar.Appearance = 0